let canvas=document.getElementById('fire')
let context=canvas.getContext('2d')

function resizeCanvas() {
    canvas.width=window.innerWidth
    canvas.height=window.innerHeight
}

function clearCanvas() {
    canvas.fillStyle='#fff'
    canvas.fillRect(0,0,canvas.width,canvas.height)
}

window.addEventListener('resize',resizeCanvas,false)
resizeCanvas()
